﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
namespace ServerLibrary.Abstract
{
    /// <summary>
    /// TODO: Handling the file.
    /// </summary>
    public interface IHandler
    {
        /// <summary>
        /// Handle requested file
        /// </summary>
        /// <param name="fileName">Path to file</param>
        /// <param name="file">Result byte array contains file</param>
        /// <param name="contentType">Content type</param>
        /// <returns>Returns error code</returns>
        int Handle(string fileName, out byte[] file, out string contentType);
    }
}
